<div id="commit-file-content" class="file-content"><div class="file-toolbar"><div class="secondary"><div class="aui-buttons"><button class="aui-button aui-button-subtle add-file-comment-trigger" autocomplete="off" original-title="Add a file comment (Type m)"><span class=" aui-icon aui-icon-small aui-iconfont-add-comment">Add a file comment (Type m) </span></button></div><a class="aui-button aui-button-subtle source-view-link" href="/projects/SOURCEGRAPH/repos/mux/browse/dir/mux.1.go?at=d67f62a89d54d4dfaf220630ff44532ae2feec8b" autocomplete="off" tabindex="0" original-title="View the full source of this file"><span class=" aui-icon aui-icon-small aui-iconfont-document">View the full source of this file </span></a><div class="diff-view-options"><button id="diff-options-dropdown-trigger" class="aui-button aui-dropdown2-trigger aui-button-subtle aui-dropdown2-trigger-arrowless" data-container=".diff-view-secondary-panel" aria-haspopup="true" autocomplete="off" resolved="" aria-controls="diff-options-dropdown" aria-expanded="false"><span class="aui-icon aui-icon-small aui-iconfont-more">Diff options </span></button><div id="diff-options-dropdown-container"><div id="diff-options-dropdown" class="aui-dropdown2 aui-style-default diff-options-dropdown aui-layer" role="menu" aria-hidden="true" resolved=""><div role="presentation"><div id="diff-options-core"><div role="presentation" class="aui-dropdown2-section diff-type-options"><div role="group"><ul class="aui-list-truncate" role="presentation"><li role="presentation"><span role="radio" tabindex="0" class="aui-dropdown2-radio" aria-checked="false" data-key="diffType" data-value="unified" title="Show diffs in one continuous column. (Type 'Shift + d')" resolved="">Unified diff</span></li><li role="presentation"><span role="radio" tabindex="0" class="aui-dropdown2-radio aui-dropdown2-checked checked" aria-checked="true" aria-disabled="false" data-key="diffType" data-value="side-by-side" data-file-type-compatibility="Side-by-side diff is not available for added or deleted files" title="Show diffs split into two columns. (Type 'Shift + d')" resolved="">Side-by-side diff</span></li></ul></div></div><div class="aui-dropdown2-section binary-options" role="presentation"><div role="group"><ul class="aui-list-truncate" role="presentation"><li role="presentation"><span role="checkbox" tabindex="0" class="aui-dropdown2-checkbox diff-options-ignore-whitespace" aria-checked="false" data-key="ignoreWhitespace" title="Ignore whitespace for all diffs. (Type 'Shift + w')" resolved="">Ignore whitespace</span></li><li role="presentation"><span role="checkbox" tabindex="0" class="aui-dropdown2-checkbox diff-options-show-whitespace-characters" aria-checked="false" data-key="showWhitespaceCharacters" title="Show whitespace characters (tab, space, newline)" resolved="">Show whitespace characters</span></li><li role="presentation"><span role="checkbox" tabindex="0" class="aui-dropdown2-checkbox diff-options-hide-comments" aria-checked="false" data-key="hideComments" title="Hide comments for all diffs. (Type 'Shift + c')" resolved="">Hide comments</span></li><li role="presentation"><span role="checkbox" tabindex="0" class="aui-dropdown2-checkbox diff-options-hide-ediff" aria-checked="false" data-key="hideEdiff" title="Hide e-diff for all diffs. (Type 'Shift + e')" resolved="">Hide e-diff</span></li></ul></div></div></div><div id="diff-options-pluggable" class="aui-dropdown2-section"><ul><li><a class="aui-dropdown2-checkbox checked code-insights-annotations-toggle aui-dropdown2-checked" title="Show code insights annotations when available" data-web-item-key="com.atlassian.bitbucket.server.bitbucket-code-insights:pr-diff-code-insights-toggle-option" resolved="" aria-checked="true" tabindex="0" role="checkbox">Show annotations</a></li></ul></div></div></div></div></div></div><div class="primary"><div class="breadcrumbs"><span class="file-path"><span>dir</span></span><span class="sep">/</span><span class="stub">mux.1.go</span></div><div class="change-type-placeholder"><span class="aui-lozenge change-type-lozenge change-type-COPY aui-lozenge-current" original-title="dir/mux.go &amp;rarr;<br>dir/mux.<span class=&quot;added&quot;>1.</span>go">Copied</span></div><div class="change-mode-placeholder"></div></div></div><div class="content-view diff-view commentable text-view side-by-side-diff diff-type-COPY animated full-window-scrolling fully-loaded diff-api-ready" data-last-updated="1559134436198"><div class="file-comments"></div><div class="diff-editor side-by-side-diff-editor-from" style="height: 423px;"><div class="CodeMirror cm-s-stash-default"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 87px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;" tabindex="0"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 83px; margin-bottom: 0px; border-right-width: 30px; min-height: 10926px; min-width: 813px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation" data-skate-ignore="true"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"></div><div class="CodeMirror-measure"><pre class="CodeMirror-line" role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-keyword">func</span> <span class="cm-variable">matchMapWithRegex</span>(<span class="cm-variable">toCheck</span> <span class="cm-keyword">map</span>[<span class="cm-keyword">string</span>]<span class="cm-operator">*</span><span class="cm-variable">regexp</span><span class="cm-number">.</span><span class="cm-variable">Regexp</span>, <span class="cm-variable">toMatch</span> <span class="cm-keyword">map</span>[<span class="cm-keyword">string</span>][]<span class="cm-keyword">string</span>, <span class="cm-variable">canonicalKey</span> <span class="cm-keyword">bool</span>) <span class="cm-keyword">bool</span> {</span></pre></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-cursors"><div class="CodeMirror-cursor" style="left: 4px; top: 0px; height: 17px;">&nbsp;</div></div><div class="CodeMirror-code" role="presentation" data-skate-ignore="true" style=""><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">1</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="1">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// Copyright 2012 The Gorilla Authors. All rights reserved.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">2</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="2">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// Use of this source code is governed by a BSD-style</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">3</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="3">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// license that can be found in the LICENSE file.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">4</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="4">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">5</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="5">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-keyword">package</span> <span class="cm-variable">mux</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">6</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="6">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">7</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="7">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-keyword">import</span> (</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">8</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="8">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-string">"errors"</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">9</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="9">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-string">"fmt"</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">10</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="10">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-string">"net/http"</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">11</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="11">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-string">"path"</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">12</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="12">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-string">"regexp"</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">13</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="13">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">)</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">14</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="14">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">15</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="15">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-keyword">var</span> (</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">16</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="16">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// ErrMethodMismatch is returned when the method in the request does not match</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">17</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="17">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// the method defined against the route.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">18</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="18">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">ErrMethodMismatch</span> <span class="cm-operator">=</span> <span class="cm-variable">errors</span><span class="cm-number">.</span><span class="cm-variable">New</span>(<span class="cm-string">"method is not allowed"</span>)</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">19</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="19">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// ErrNotFound is returned when no route match is found.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">20</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="20">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">ErrNotFound</span> <span class="cm-operator">=</span> <span class="cm-variable">errors</span><span class="cm-number">.</span><span class="cm-variable">New</span>(<span class="cm-string">"no matching route was found"</span>)</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">21</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="21">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">)</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">22</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="22">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">23</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="23">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// NewRouter returns a new router instance.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">24</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="24">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-keyword">func</span> <span class="cm-variable">NewRouter</span>() <span class="cm-operator">*</span><span class="cm-variable">Router</span> {</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">25</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="25">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-keyword">return</span> <span class="cm-operator">&amp;</span><span class="cm-variable">Router</span>{<span class="cm-variable">namedRoutes</span>: <span class="cm-atom">make</span>(<span class="cm-keyword">map</span>[<span class="cm-keyword">string</span>]<span class="cm-operator">*</span><span class="cm-variable">Route</span>)}</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">26</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="26">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">}</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">27</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="27">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">28</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="28">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// Router registers routes to be matched and dispatches a handler.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">29</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="29">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">30</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="30">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// It implements the http.Handler interface, so it can be registered to serve</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">31</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="31">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// requests:</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">32</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="32">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">33</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="33">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//     var router = mux.NewRouter()</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">34</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="34">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">35</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="35">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//     func main() {</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">36</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="36">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//         http.Handle("/", router)</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">37</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="37">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//     }</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">38</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="38">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">39</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="39">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// Or, for Google App Engine, register it in a init() function:</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">40</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="40">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">41</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="41">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//     func init() {</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">42</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="42">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//         http.Handle("/", router)</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">43</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="43">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//     }</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">44</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="44">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">45</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="45">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// This will send all incoming requests to the router.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" original-title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">46</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="46">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-keyword">type</span> <span class="cm-variable">Router</span> <span class="cm-keyword">struct</span> {</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">47</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="47">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// Configurable Handler to be used when no route matches.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">48</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="48">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">NotFoundHandler</span> <span class="cm-variable">http</span><span class="cm-number">.</span><span class="cm-variable">Handler</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">49</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="49">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">50</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="50">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// Configurable Handler to be used when the request method does not match the route.</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">51</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="51">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">MethodNotAllowedHandler</span> <span class="cm-variable">http</span><span class="cm-number">.</span><span class="cm-variable">Handler</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">52</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="52">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">53</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="53">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// Routes to be matched, in order.</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">54</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="54">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">routes</span> []<span class="cm-operator">*</span><span class="cm-variable">Route</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">55</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="55">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">56</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="56">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// Routes by name for URL building.</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">57</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="57">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">namedRoutes</span> <span class="cm-keyword">map</span>[<span class="cm-keyword">string</span>]<span class="cm-operator">*</span><span class="cm-variable">Route</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">58</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="58">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="paired-with-change context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">59</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="59">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// If true, do not clear the request context after handling the request.</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">60</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="60">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">//</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">61</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="61">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// Deprecated: No effect when go1.7+ is used, since the context is stored</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">62</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="62">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// on the request itself.</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">63</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="63">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">KeepContext</span> <span class="cm-keyword">bool</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">64</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="64">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">65</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="65">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// Slice of middlewares to be called after a match is found</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">66</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="66">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">middlewares</span> []<span class="cm-variable">middleware</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">67</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="67">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">68</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="68">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// configuration shared with `Route`</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">69</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="69">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">routeConf</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">70</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="70">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">}</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">71</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="71">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">72</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="72">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// common route configuration shared between `Router` and `Route`</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">73</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="73">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-keyword">type</span> <span class="cm-variable">routeConf</span> <span class="cm-keyword">struct</span> {</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">74</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="74">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// If true, "/path/foo%2Fbar/to" will match the path "/path/{var}/to"</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">75</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="75">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">useEncodedPath</span> <span class="cm-keyword">bool</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">76</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="76">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">77</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="77">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// If true, when the path pattern is "/path/", accessing "/path" will</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">78</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="78">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// redirect to the former and vice versa.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">79</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="79">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">strictSlash</span> <span class="cm-keyword">bool</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">80</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="80">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">81</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="81">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// If true, when the path pattern is "/path//to", accessing "/path//to"</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">82</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="82">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// will not redirect</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">83</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="83">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">skipClean</span> <span class="cm-keyword">bool</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">84</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="84">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">85</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="85">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// Manager for the variables from host and path.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">86</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="86">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">regexp</span> <span class="cm-variable">routeRegexpGroup</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">87</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="87">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">88</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="88">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// List of matchers.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">89</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="89">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">matchers</span> []<span class="cm-variable">matcher</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">90</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="90">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">91</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="91">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// The scheme used when building URLs.</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">92</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="92">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">buildScheme</span> <span class="cm-keyword">string</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">93</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="93">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">94</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="94">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">buildVarsFunc</span> <span class="cm-variable">BuildVarsFunc</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">95</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="95">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">}</span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">96</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="96">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">97</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="97">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// returns an effective deep copy of `routeConf`</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">98</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="98">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-keyword">func</span> <span class="cm-variable">copyRouteConf</span>(<span class="cm-variable">r</span> <span class="cm-variable">routeConf</span>) <span class="cm-variable">routeConf</span> {</span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">99</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="99">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">c</span> :<span class="cm-operator">=</span> <span class="cm-variable">r</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">100</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="100">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="removed modified line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">101</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="REMOVED" data-line-number="101">-</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-keyword">if</span> <span class="cm-variable">r</span><span class="cm-number">.</span><span class="cm-variable">regexp</span><span class="cm-number">.</span><span class="cm-variable">path</span> <span class="cm-operator">!=</span> <span class="cm-atom">nil</span> {</span></pre></div><div class="removed modified line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">102</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="REMOVED" data-line-number="102">-</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">c</span><span class="cm-number">.</span><span class="cm-variable">regexp</span><span class="cm-number">.</span><span class="cm-variable">path</span> <span class="cm-operator">=</span> <span class="cm-variable">copyRouteRegexp</span>(<span class="cm-variable">r</span><span class="cm-number">.</span><span class="cm-variable">regexp</span><span class="cm-number">.</span><span class="cm-variable">path</span>)</span></pre></div><div class="removed modified line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">103</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="REMOVED" data-line-number="103">-</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span>}</span></pre></div><div class="removed modified line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">104</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="REMOVED" data-line-number="104">-</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="removed modified line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">105</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="REMOVED" data-line-number="105">-</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-keyword">if</span> <span class="cm-variable">r</span><span class="cm-number">.</span><span class="cm-variable">regexp</span><span class="cm-number">.</span><span class="cm-variable">host</span> <span class="cm-operator">!=</span> <span class="cm-atom">nil</span> {</span></pre></div><div class="removed modified line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">106</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="REMOVED" data-line-number="106">-</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">c</span><span class="cm-number">.</span><span class="cm-variable">regexp</span><span class="cm-number">.</span><span class="cm-variable">host</span> <span class="cm-operator">=</span> <span class="cm-variable">copyRouteRegexp</span>(<span class="cm-variable">r</span><span class="cm-number">.</span><span class="cm-variable">regexp</span><span class="cm-number">.</span><span class="cm-variable">host</span>)</span></pre></div><div class="removed modified line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">107</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="REMOVED" data-line-number="107">-</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span>}</span></pre></div><div class="removed modified line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">108</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="REMOVED" data-line-number="108">-</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">109</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="109">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">c</span><span class="cm-number">.</span><span class="cm-variable">regexp</span><span class="cm-number">.</span><span class="cm-variable">queries</span> <span class="cm-operator">=</span> <span class="cm-atom">make</span>([]<span class="cm-operator">*</span><span class="cm-variable">routeRegexp</span>, <span class="cm-number">0</span>, <span class="cm-atom">len</span>(<span class="cm-variable">r</span><span class="cm-number">.</span><span class="cm-variable">regexp</span><span class="cm-number">.</span><span class="cm-variable">queries</span>))</span></pre></div><div class="removed modified line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">110</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="REMOVED" data-line-number="110">-</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-keyword">for</span> <span class="cm-variable">_</span>, <span class="cm-variable">q</span> :<span class="cm-operator">=</span> <span class="cm-keyword">range</span> <span class="cm-variable">r</span><span class="cm-number">.</span><span class="cm-variable">regexp</span><span class="cm-number">.</span><span class="cm-variable">queries</span> {</span></pre></div><div class="removed modified line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">111</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="REMOVED" data-line-number="111">-</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">c</span><span class="cm-number">.</span><span class="cm-variable">regexp</span><span class="cm-number">.</span><span class="cm-variable">queries</span> <span class="cm-operator">=</span> <span class="cm-atom">append</span>(<span class="cm-variable">c</span><span class="cm-number">.</span><span class="cm-variable">regexp</span><span class="cm-number">.</span><span class="cm-variable">queries</span>, <span class="cm-variable">copyRouteRegexp</span>(<span class="cm-variable">q</span>))</span></pre></div><div class="removed modified line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">112</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="REMOVED" data-line-number="112">-</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span>}</span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">113</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="113">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">114</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="114">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">c</span><span class="cm-number">.</span><span class="cm-variable">matchers</span> <span class="cm-operator">=</span> <span class="cm-atom">make</span>([]<span class="cm-variable">matcher</span>, <span class="cm-number">0</span>, <span class="cm-atom">len</span>(<span class="cm-variable">r</span><span class="cm-number">.</span><span class="cm-variable">matchers</span>))</span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">115</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="115">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-keyword">for</span> <span class="cm-variable">_</span>, <span class="cm-variable">m</span> :<span class="cm-operator">=</span> <span class="cm-keyword">range</span> <span class="cm-variable">r</span><span class="cm-number">.</span><span class="cm-variable">matchers</span> {</span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">116</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="116">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">c</span><span class="cm-number">.</span><span class="cm-variable">matchers</span> <span class="cm-operator">=</span> <span class="cm-atom">append</span>(<span class="cm-variable">c</span><span class="cm-number">.</span><span class="cm-variable">matchers</span>, <span class="cm-variable">m</span>)</span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">117</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="117">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span>}</span></pre></div><div class="paired-with-change context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">118</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="118">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">119</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="119">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-keyword">return</span> <span class="cm-variable">c</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">120</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="120">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">}</span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">121</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="121">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">122</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="122">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-keyword">func</span> <span class="cm-variable">copyRouteRegexp</span>(<span class="cm-variable">r</span> <span class="cm-operator">*</span><span class="cm-variable">routeRegexp</span>) <span class="cm-operator">*</span><span class="cm-variable">routeRegexp</span> {</span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">123</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="123">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">c</span> :<span class="cm-operator">=</span> <span class="cm-operator">*</span><span class="cm-variable">r</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">124</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="124">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-keyword">return</span> <span class="cm-operator">&amp;</span><span class="cm-variable">c</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">125</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="125">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">}</span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-from bitbucket-gutter-marker">126</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="FROM" data-line-type="CONTEXT" data-line-number="126">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div></div></div></div></div></div><div style="position: absolute; height: 30px; width: 1px; border-bottom: 0px solid transparent; top: 10926px;"></div><div class="CodeMirror-gutters" style="height: 10956px; left: 0px;"><div class="CodeMirror-gutter CodeMirror-linewidget"></div><div class="CodeMirror-gutter add-comment-trigger"></div><div class="CodeMirror-gutter line-number-from"></div><div class="CodeMirror-gutter line-number-marker"></div></div></div></div><div class="diff-hunk-map"><div class="viewport-indicator" style="height: 20.3764px; transform: translate3d(0px, 24px, 0px);"></div><canvas width="9" height="423"></canvas></div></div><div class="segment-connector-column" style="height: 423px;"><svg height="423" width="36"><linearGradient id="added-and-removed-svg-gradient"><stop class="removed" offset="0%"></stop><stop class="removed" offset="30%"></stop><stop class="added" offset="70%"></stop><stop class="added" offset="100%"></stop></linearGradient></svg></div><div class="diff-editor side-by-side-diff-editor-to" style="height: 423px;"><div class="CodeMirror cm-s-stash-default"><div style="overflow: hidden; position: relative; width: 3px; height: 0px; top: 0px; left: 87px;"><textarea autocorrect="off" autocapitalize="off" spellcheck="false" style="position: absolute; bottom: -1em; padding: 0px; width: 1000px; height: 1em; outline: none;" tabindex="0"></textarea></div><div class="CodeMirror-scrollbar-filler" cm-not-content="true"></div><div class="CodeMirror-gutter-filler" cm-not-content="true"></div><div class="CodeMirror-scroll" tabindex="-1"><div class="CodeMirror-sizer" style="margin-left: 83px; margin-bottom: 0px; border-right-width: 30px; min-height: 10890px; min-width: 813px; padding-right: 0px; padding-bottom: 0px;"><div style="position: relative; top: 0px;"><div class="CodeMirror-lines" role="presentation" data-skate-ignore="true"><div role="presentation" style="position: relative; outline: none;"><div class="CodeMirror-measure"></div><div class="CodeMirror-measure"><pre class="CodeMirror-line" role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-keyword">func</span> <span class="cm-variable">matchMapWithRegex</span>(<span class="cm-variable">toCheck</span> <span class="cm-keyword">map</span>[<span class="cm-keyword">string</span>]<span class="cm-operator">*</span><span class="cm-variable">regexp</span><span class="cm-number">.</span><span class="cm-variable">Regexp</span>, <span class="cm-variable">toMatch</span> <span class="cm-keyword">map</span>[<span class="cm-keyword">string</span>][]<span class="cm-keyword">string</span>, <span class="cm-variable">canonicalKey</span> <span class="cm-keyword">bool</span>) <span class="cm-keyword">bool</span> {</span></pre></div><div style="position: relative; z-index: 1;"></div><div class="CodeMirror-cursors"><div class="CodeMirror-cursor" style="left: 4px; top: 0px; height: 17px;">&nbsp;</div></div><div class="CodeMirror-code" role="presentation" data-skate-ignore="true" style=""><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">1</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="1">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// Copyright 2012 The Gorilla Authors. All rights reserved.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">2</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="2">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// Use of this source code is governed by a BSD-style</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">3</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="3">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// license that can be found in the LICENSE file.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">4</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="4">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">5</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="5">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-keyword">package</span> <span class="cm-variable">mux</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">6</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="6">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">7</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="7">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-keyword">import</span> (</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">8</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="8">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-string">"errors"</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">9</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="9">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-string">"fmt"</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">10</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="10">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-string">"net/http"</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">11</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="11">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-string">"path"</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">12</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="12">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-string">"regexp"</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">13</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="13">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">)</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">14</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="14">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">15</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="15">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-keyword">var</span> (</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">16</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="16">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// ErrMethodMismatch is returned when the method in the request does not match</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">17</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="17">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// the method defined against the route.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">18</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="18">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">ErrMethodMismatch</span> <span class="cm-operator">=</span> <span class="cm-variable">errors</span><span class="cm-number">.</span><span class="cm-variable">New</span>(<span class="cm-string">"method is not allowed"</span>)</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">19</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="19">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// ErrNotFound is returned when no route match is found.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">20</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="20">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">ErrNotFound</span> <span class="cm-operator">=</span> <span class="cm-variable">errors</span><span class="cm-number">.</span><span class="cm-variable">New</span>(<span class="cm-string">"no matching route was found"</span>)</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">21</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="21">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">)</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">22</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="22">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">23</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="23">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// NewRouter returns a new router instance.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">24</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="24">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-keyword">func</span> <span class="cm-variable">NewRouter</span>() <span class="cm-operator">*</span><span class="cm-variable">Router</span> {</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">25</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="25">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-keyword">return</span> <span class="cm-operator">&amp;</span><span class="cm-variable">Router</span>{<span class="cm-variable">namedRoutes</span>: <span class="cm-atom">make</span>(<span class="cm-keyword">map</span>[<span class="cm-keyword">string</span>]<span class="cm-operator">*</span><span class="cm-variable">Route</span>)}</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">26</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="26">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">}</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">27</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="27">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">28</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="28">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// Router registers routes to be matched and dispatches a handler.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">29</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="29">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">30</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="30">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// It implements the http.Handler interface, so it can be registered to serve</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">31</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="31">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// requests:</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">32</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="32">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">33</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="33">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//     var router = mux.NewRouter()</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">34</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="34">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">35</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="35">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//     func main() {</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">36</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="36">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//         http.Handle("/", router)</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">37</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="37">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//     }</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">38</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="38">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">39</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="39">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// Or, for Google App Engine, register it in a init() function:</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">40</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="40">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">41</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="41">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//     func init() {</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">42</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="42">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//         http.Handle("/", router)</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">43</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="43">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//     }</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">44</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="44">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">45</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="45">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// This will send all incoming requests to the router.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">46</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="46">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-keyword">type</span> <span class="cm-variable">Router</span> <span class="cm-keyword">struct</span> {</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">47</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="47">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// Configurable Handler to be used when no route matches.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">48</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="48">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">NotFoundHandler</span> <span class="cm-variable">http</span><span class="cm-number">.</span><span class="cm-variable">Handler</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">49</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="49">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">50</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="50">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// Configurable Handler to be used when the request method does not match the route.</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">51</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="51">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">MethodNotAllowedHandler</span> <span class="cm-variable">http</span><span class="cm-number">.</span><span class="cm-variable">Handler</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">52</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="52">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">53</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="53">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// Routes to be matched, in order.</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">54</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="54">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">routes</span> []<span class="cm-operator">*</span><span class="cm-variable">Route</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">55</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="55">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">56</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="56">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// Routes by name for URL building.</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">57</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="57">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">namedRoutes</span> <span class="cm-keyword">map</span>[<span class="cm-keyword">string</span>]<span class="cm-operator">*</span><span class="cm-variable">Route</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">58</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="58">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="added modified line last-focus" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">59</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="ADDED" data-line-number="59">+</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// Routes by name for URL building.</span></span></pre></div><div class="added modified line last-focus" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">60</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="ADDED" data-line-number="60">+</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">namedRoutes2</span> <span class="cm-keyword">map</span>[<span class="cm-keyword">string</span>]<span class="cm-operator">*</span><span class="cm-variable">Route</span></span></pre></div><div class="added modified line last-focus" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">61</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="ADDED" data-line-number="61">+</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="added modified line last-focus" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">62</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="ADDED" data-line-number="62">+</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// Routes by name for URL building.</span></span></pre></div><div class="added modified line last-focus" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">63</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="ADDED" data-line-number="63">+</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">namedRoutes3</span> <span class="cm-keyword">map</span>[<span class="cm-keyword">string</span>]<span class="cm-operator">*</span><span class="cm-variable">Route</span></span></pre></div><div class="added modified line last-focus" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">64</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="ADDED" data-line-number="64">+</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">65</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="59">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// If true, do not clear the request context after handling the request.</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">66</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="60">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">//</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">67</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="61">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// Deprecated: No effect when go1.7+ is used, since the context is stored</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">68</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="62">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// on the request itself.</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">69</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="63">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">KeepContext</span> <span class="cm-keyword">bool</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">70</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="64">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">71</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="65">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// Slice of middlewares to be called after a match is found</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">72</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="66">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">middlewares</span> []<span class="cm-variable">middleware</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">73</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="67">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">74</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="68">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// configuration shared with `Route`</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">75</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="69">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">routeConf</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">76</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="70">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">}</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">77</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="71">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">78</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="72">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// common route configuration shared between `Router` and `Route`</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">79</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="73">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-keyword">type</span> <span class="cm-variable">routeConf</span> <span class="cm-keyword">struct</span> {</span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">80</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="74">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// If true, "/path/foo%2Fbar/to" will match the path "/path/{var}/to"</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">81</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="75">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">useEncodedPath</span> <span class="cm-keyword">bool</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">82</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="76">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">83</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="77">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// If true, when the path pattern is "/path/", accessing "/path" will</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">84</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="78">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// redirect to the former and vice versa.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">85</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="79">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">strictSlash</span> <span class="cm-keyword">bool</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">86</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="80">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">87</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="81">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// If true, when the path pattern is "/path//to", accessing "/path//to"</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">88</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="82">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// will not redirect</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">89</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="83">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">skipClean</span> <span class="cm-keyword">bool</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">90</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="84">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">91</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="85">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// Manager for the variables from host and path.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">92</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="86">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">regexp</span> <span class="cm-variable">routeRegexpGroup</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">93</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="87">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">94</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="88">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// List of matchers.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">95</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="89">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">matchers</span> []<span class="cm-variable">matcher</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">96</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="90">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">97</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="91">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-comment">// The scheme used when building URLs.</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">98</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="92">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">buildScheme</span> <span class="cm-keyword">string</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">99</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="93">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">100</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="94">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">buildVarsFunc</span> <span class="cm-variable">BuildVarsFunc</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">101</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="95">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">}</span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">102</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="96">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">103</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="97">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// returns an effective deep copy of `routeConf`</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">104</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="98">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-keyword">func</span> <span class="cm-variable">copyRouteConf</span>(<span class="cm-variable">r</span> <span class="cm-variable">routeConf</span>) <span class="cm-variable">routeConf</span> {</span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">105</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="99">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">c</span> :<span class="cm-operator">=</span> <span class="cm-variable">r</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">106</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="100">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="paired-with-change context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">107</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="109">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">c</span><span class="cm-number">.</span><span class="cm-variable">regexp</span><span class="cm-number">.</span><span class="cm-variable">queries</span> <span class="cm-operator">=</span> <span class="cm-atom">make</span>([]<span class="cm-operator">*</span><span class="cm-variable">routeRegexp</span>, <span class="cm-number">0</span>, <span class="cm-atom">len</span>(<span class="cm-variable">r</span><span class="cm-number">.</span><span class="cm-variable">regexp</span><span class="cm-number">.</span><span class="cm-variable">queries</span>))</span></pre></div><div class="paired-with-change context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">108</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="113">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">109</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="114">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">c</span><span class="cm-number">.</span><span class="cm-variable">matchers</span> <span class="cm-operator">=</span> <span class="cm-atom">make</span>([]<span class="cm-variable">matcher</span>, <span class="cm-number">0</span>, <span class="cm-atom">len</span>(<span class="cm-variable">r</span><span class="cm-number">.</span><span class="cm-variable">matchers</span>))</span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">110</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="115">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-keyword">for</span> <span class="cm-variable">_</span>, <span class="cm-variable">m</span> :<span class="cm-operator">=</span> <span class="cm-keyword">range</span> <span class="cm-variable">r</span><span class="cm-number">.</span><span class="cm-variable">matchers</span> {</span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">111</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="116">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">c</span><span class="cm-number">.</span><span class="cm-variable">matchers</span> <span class="cm-operator">=</span> <span class="cm-atom">append</span>(<span class="cm-variable">c</span><span class="cm-number">.</span><span class="cm-variable">matchers</span>, <span class="cm-variable">m</span>)</span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">112</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="117">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span>}</span></pre></div><div class="added modified line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">113</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="ADDED" data-line-number="113">+</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-keyword">for</span> <span class="cm-variable">_</span>, <span class="cm-variable">m</span> :<span class="cm-operator">=</span> <span class="cm-keyword">range</span> <span class="cm-variable">r</span><span class="cm-number">.</span><span class="cm-variable">matchers</span> {</span></pre></div><div class="added modified line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">114</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="ADDED" data-line-number="114">+</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">c</span><span class="cm-number">.</span><span class="cm-variable">matchers</span> <span class="cm-operator">=</span> <span class="cm-atom">append</span>(<span class="cm-variable">c</span><span class="cm-number">.</span><span class="cm-variable">matchers</span>, <span class="cm-variable">m</span>)</span></pre></div><div class="added modified line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">115</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="ADDED" data-line-number="115">+</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span>}</span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">116</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="118">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">117</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="119">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-keyword">return</span> <span class="cm-variable">c</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">118</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="120">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">}</span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">119</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="121">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">120</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="122">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-keyword">func</span> <span class="cm-variable">copyRouteRegexp</span>(<span class="cm-variable">r</span> <span class="cm-operator">*</span><span class="cm-variable">routeRegexp</span>) <span class="cm-operator">*</span><span class="cm-variable">routeRegexp</span> {</span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">121</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="123">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-variable">c</span> :<span class="cm-operator">=</span> <span class="cm-operator">*</span><span class="cm-variable">r</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">122</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="124">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-tab" role="presentation" cm-text="	">    </span><span class="cm-keyword">return</span> <span class="cm-operator">&amp;</span><span class="cm-variable">c</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">123</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="125">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;">}</span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">124</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="126">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span cm-text="">​</span></span></pre></div><div class="context line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><button class="add-comment-trigger bitbucket-gutter-marker" title="Add a comment on this line."><span class="aui-icon aui-icon-small aui-iconfont-comment">This line has a comment.</span><span class="aui-icon aui-icon-small aui-iconfont-add-comment">Add a comment on this line.</span></button></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">125</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="127">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">// Match attempts to match the given request against the router's registered routes.</span></span></pre></div><div class="context expanded line" style="position: relative;"><div class="CodeMirror-gutter-wrapper" style="left: -83px;"><div class="CodeMirror-gutter-elt" style="left: 0px; width: 26px;"><div class="dummy-comment-trigger bitbucket-gutter-marker" title="Comments can only be added within 10 lines of a change"></div></div><div class="CodeMirror-gutter-elt" style="left: 26px; width: 37px;"><div class="line-number line-number-to bitbucket-gutter-marker">126</div></div><div class="CodeMirror-gutter-elt" style="left: 63px; width: 20px;"><div class="line-number-marker line-locator bitbucket-gutter-marker" data-file-type="TO" data-line-type="CONTEXT" data-line-number="128">&nbsp;</div></div></div><pre class=" CodeMirror-line " role="presentation"><span role="presentation" style="padding-right: 0.1px;"><span class="cm-comment">//</span></span></pre></div></div></div></div></div></div><div style="position: absolute; height: 30px; width: 1px; border-bottom: 0px solid transparent; top: 10890px;"></div><div class="CodeMirror-gutters" style="height: 10920px; left: 0px;"><div class="CodeMirror-gutter CodeMirror-linewidget"></div><div class="CodeMirror-gutter add-comment-trigger"></div><div class="CodeMirror-gutter line-number-to"></div><div class="CodeMirror-gutter line-number-marker"></div></div></div></div><div class="diff-hunk-map"><div class="viewport-indicator" style="height: 20.4306px; transform: translate3d(0px, 24px, 0px);"></div><canvas width="9" height="423"></canvas></div></div></div></div>
